/**
 * Copyright (C) 2025 ROKAE (Beijing) Technology Co., LTD.
 * All Rights Reserved.
 *
 * Information in this file is the intellectual property of Rokae Technology Co., Ltd,
 * And may contains trade secrets that must be stored and viewed confidentially.
 *
 * @file RLStopWidget.cpp
 * @brief RL Stop 指令
 */
#include "RLStopWidget.h"
#include "ui_RLStopWidget.h"
#include <QDebug>

xplugin::RLStopWidget::RLStopWidget(const QString &type, QWidget *parent)
    :RLContentBase(parent)
    ,ui(new Ui::RLStopWidget)
{
    ui->setupUi(this);
    setType(type);
}

xplugin::RLStopWidget::~RLStopWidget()
{
    delete ui;
}

void xplugin::RLStopWidget::FillWith(const QString &str)
{
    qDebug() << "xplugin::RLStopWidget::FillWith" << m_type << " : " << str;
}

QString xplugin::RLStopWidget::ToString()
{
    QString lab = QString::number(ui->spinBox->value());
    return m_type + QString(" %1").arg(lab);
}

bool xplugin::RLStopWidget::CheckInsert()
{
    return true;
}
